<%@page import="com.mysql.jdbc.StringUtils"%>
<%@page import="com.hhit.collaborative_learning.dao.impl.PublicDaoImplMySql"%>
<%@page import="com.hhit.collaborative_learning.utils.Utils"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String link=request.getParameter("page");
String userId=Utils.getCookieValue("userId", request);
PublicDaoImplMySql dao=new PublicDaoImplMySql();
String right=dao.getBlogRight(Integer.parseInt(userId));
if(!StringUtils.isNullOrEmpty(right)){
	Cookie cookie=new Cookie("cl_blogRight",right);
	cookie.setPath("/");
	response.addCookie(cookie);
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>专题学习系统</title>
  </head>
  <frameset cols="180,*" frameborder="yes" border="1" framespacing="1">
  <frame src="left_learning.jsp" name="leftFrame" scrolling="no" noresize="noresize" id="leftFrame" title="leftFrame" />
  <frame src="<%=link %>.jsp" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body></noframes>
</html>
